﻿@model kxcxw.Data.Entities.SysItemDetial
@{
    ViewBag.Title = "Edit";
    Layout = "~/Areas/Admin/Views/Shared/_DictLayout.cshtml";
}
<h2>
    @Html.ActionLink("类别管理", "Index") &raquo; @Html.ActionLink("产品类别", "Edit", null, new { @class = "active" })</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div id="main">
    @using (Html.BeginForm("CategoryEdit", "Dict", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        @Html.ValidationSummary(true)
        <fieldset>
            @Html.HiddenFor(model => model.ItemDeitalID)
            @Html.HiddenFor(model => model.ItemID)
            @Html.HiddenFor(model => model.ItemDeitalPID)
            @Html.HiddenFor(model => model.CreateDate)
            @Html.HiddenFor(model => model.ImgInfo)
            <div class="field">
                <div class="editor-label">
                    名称：
                </div>
                <div class="editor-field-long">
                    @Html.EditorFor(model => model.itemDetialName)
                    @Html.ValidationMessageFor(model => model.itemDetialName)
                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    描述：
                </div>
                <div class="editor-field-long">
                    @Html.EditorFor(model => model.Description)
                    @Html.ValidationMessageFor(model => model.Description)
                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                    序号:
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.OrderID)
                    @Html.ValidationMessageFor(model => model.OrderID)
                </div>
            </div>
            <div class="field" style="height: auto; margin-bottom: 5px;">
                <div class="editor-label">
                    图片：
                </div>
                <div class="editor-field" style="width: auto">
                    <div style="width: 101px; height: 51px; border: 1px solid #cccccc; margin-bottom: 5px;">
                        <img alt="@Model.itemDetialName" src="@Url.Content("~/Content/Upload/SiteLogo/" + Model.ImgInfo)" /></div>
                    <div>
                        <input type="file" name="ImageName" id="ImageName" /><label>
                            显示到广告位的图片， <span style="color: Red">规格100px * 40px</span>
                        </label>
                        @Html.ValidationMessageFor(m => m.ImgInfo)
                    </div>
                </div>
            </div>
            <p>
                <input type="submit" value="保 存" />
            </p>
        </fieldset>
    }
</div>
